package context.condition;

import cn.stimd.spring.context.annotation.Bean;
import cn.stimd.spring.context.annotation.Configuration;
import cn.stimd.spring.context.annotation.Profile;

/**
 * Created by Stimd
 * 项目地址：https://gitee.com/stimd/spring-wheel
 * 公众号：Java编程探微
 */
@Configuration
public class ConditionConfig {
    //测试环境加载
    @Profile("dev")
    @Bean
    public ConditionBean devConditionBean(){
        return new ConditionBean();
    }

    //生产环境加载
    @Profile("prd")
    @Bean
    public ConditionBean prdConditionBean(){
        return new ConditionBean();
    }
}
